﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lm.Common.Security.Cryptography
{
    public class Md5Computer
    {
        public string Compute(string str)
        {
            using (var computer = System.Security.Cryptography.MD5.Create())
            {
                var buf = computer.ComputeHash(Encoding.UTF8.GetBytes(str));
                return BitConverter.ToString(buf).Replace("-", "");
            }
        }
    }
}
